extends ../../components/layout
append style
  link(rel='stylesheet', href='../../assets/css/lib/swiper.min.css')
  link(rel='stylesheet', href='../../assets/css/integralMall/integralMall-index.css')
block title
  title 积分商城首页
block content
  .gzl-page.integral-mall-page
    .gzl-section
      .integral-mall-hd
        .integral-mall-bg
        .integral-mall-top
          .searchbox
            input(type="text",placeholder="搜索", readonly="readonly")
            .search-icon-tip
              +icon('#icon-search')
          .classify-tag
            +icon('#icon-classify')
        .integral-mall-swiper
          +swiper(class="gzl-swiper")
        .integral-mall-bottom
      .integral-mall-tab
        ul.tab-list
          li
            a(href="javasscript:;")
              p 我的积分
              img(src="../../assets/img/integralMall/tab1.png", alt="")
          li
            a(href="javasscript:;")
              p 签到有礼
              img(src="../../assets/img/integralMall/tab2.png", alt="")
          li
            a(href="javasscript:;")
              p 兑换记录
              img(src="../../assets/img/integralMall/tab3.png", alt="")
      - var nav = [{text: '热门推荐'},{text: '我能兑换'}]
      .integral-mall-nav
        .nav-box
          +navbar(nav)
      .integral-mall-type
        -for (var i=0;i<nav.length;i++)
          if i == 0
            ul.integral-mall-list
              - for (var j=0;j<6;j++)
                li.list-item
                  a(href="javascript:;")
                    img(src="http://file.gzl.cn/group1/M00/20/DE/wKkBHlwN1gSAOg_FAAIzlU4NVbs990.jpg", alt="")
                    .prod-name 苹果Apple原装Magic苹果Apple原装Magic
                    .prod-prc
                      .price 8000
                      .text 积分
          else
            ul.integral-mall-list
              - for (var j=0;j<6;j++)
                li.list-item
                  a(href="javascript:;")
                    img(src="http://file.gzl.cn/group1/M00/1C/DB/wKkBH1uXZuiAQv88AAENYzVv0P0980.jpg", alt="")
                    .prod-name 苹果Apple原装Magic苹果Apple原装Magic
                    .prod-prc
                      .price 8000
                      .text 积分
append script
  script(src="../../assets/js/integralMall/integralMall-index.js")

  script(type="text/template", id="search-list")
    .gzl-page.search-list-page
      .gzl-section
        .search-bar-outer
          .search-bar
            input(type="text",placeholder="全球城市/区域/位置")
            +icon('#icon-search')
  
  script(type="text/template", id="search-page")
    .gzl-page.search-list-page
      .gzl-section
        .search-bar-outer
          .search-bar
            input(type="text",placeholder="搜索")
            +icon('#icon-search')
            .search-bar-btn 取消
        .search-page-content
          .search-history
            .search-history-title 历史搜索
            ul.search-history-list
              li.search-history-item
                a(href="javascript:;") 韩国
              li.search-history-item
                a(href="javascript:;") 日本
              li.search-history-item
                a(href="javascript:;") 泰国
              li.search-history-item
                a(href="javascript:;") 欧洲
              li.search-history-item
                a(href="javascript:;") 迪拜
              li.search-history-item
                a(href="javascript:;") 俄罗斯
              li.search-history-item
                a(href="javascript:;") 马尔代夫
            .search-history-clear 清空搜索历史